package com.chenju.invokechainservice.domain;

import com.chenju.invokechainservice.common.enums.ChangeType;
import com.github.javaparser.ast.body.MethodDeclaration;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class DiffMethodEntity implements Serializable {
    private MethodDeclaration oldMethod;
    private MethodDeclaration newMethod;
    private ChangeType changeType;
    private DiffMethodDetailEntity detail;

    public DiffMethodEntity(MethodDeclaration oldMethod, MethodDeclaration newMethod, ChangeType changeType) {
        this.oldMethod = oldMethod;
        this.newMethod = newMethod;
        this.changeType = changeType;
    }
}
